package com.hxgz.steel.service;

import com.hxgz.steel.common.ServerResponse;
import com.hxgz.steel.domain.Page;
import com.hxgz.steel.dto.QuotationInfoDto;
import com.hxgz.steel.dto.QuotationManageDto;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface QuotationManageService {

    ServerResponse listQuotations(QuotationManageDto vo, Long userId,Page page);

    ServerResponse<Map<String,Object>> getQuotationInfo(Long id, Long userId);

    void downloadQuotation(Long id,Long userId,HttpServletResponse response,HttpServletRequest request );

    void downloadExcel(Long id,Long userId,HttpServletResponse response,HttpServletRequest request );

    ServerResponse refuseQuotation(Long id, Long userId);

    ServerResponse submitQuotation(QuotationInfoDto vo,String fileAddress,Long userId);

    ServerResponse importQuotation(MultipartFile multipartFile,HttpServletRequest request);
}
